﻿using System;
using PerceptiveMCAPI.Export.Types;
//
namespace PerceptiveMCAPI.Export
{
	internal static class apiException
	{
		internal static Api_Error FormatError( Exception ex )
		{
			Api_Error err = new Api_Error();
			if ( ex.InnerException != null ) ex = ex.InnerException;
			err.code = "ex"; err.error = ex.Message + System.Environment.NewLine + System.Environment.NewLine + ex.StackTrace;
			return err;
		}
	}
}
